<script setup lang="ts">

import {ref} from "vue"


const movieName = ref<string>("")
const emits = defineEmits<{
  (e:'onSearch',movieName:string):void
}>()
const search = (value:string):void =>{
  emits("onSearch",value)
}
</script>

<template>
  <view>
    <u-search
        v-model="movieName"
        :show-action="true"
        actionText="搜索"
        :animation="true"
        searchIconSize="48"
        margin="24rpx"
        height="64"
        @search="search"
    ></u-search>
  </view>
</template>

<style scoped>

</style>